package com.woniu.finance.controller;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.woniu.finance.domain.ApartFee;
import com.woniu.finance.service.IApartFeeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.List;

/**
 * 公寓缴费记录Controller
 * 
 * @author yy
 * @date 2023-04-04
 */
@RestController
@RequestMapping("/finance/tbapartfee/web")
@Api("公寓缴费记录管理")
public class ApartFeeWebController extends BaseController
{
    @Autowired
    private IApartFeeService apartFeeService;

    @PutMapping("/editPid")
    public AjaxResult editPid(Long bookId, Integer payType, Integer bedId, BigDecimal realPay){

        apartFeeService.modifyPid(bookId,payType,bedId,realPay);
        return AjaxResult.success("付款成功!");
    }

}
